package com.casel.yusuke;

import com.example.yusukesshutdown.R;
import com.example.yusukesshutdown.R.layout;
import com.example.yusukesshutdown.R.menu;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.Window;
import android.view.WindowManager;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.TextView;

public class LoseActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		 this.getWindow().setFlags(
				 WindowManager.LayoutParams.FLAG_FULLSCREEN,
				  WindowManager.LayoutParams.FLAG_FULLSCREEN);
		setContentView(R.layout.activity_lose);
		TextView titulo = (TextView) findViewById(R.id.losetext);
		
        
        // Cargamos una animación desde resources
        Animation animacionFundido = AnimationUtils.loadAnimation(this, R.anim.fade);
        
        // Le asociamos la animación al TextView
        titulo.startAnimation(animacionFundido);


	}
		
	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.lose, menu);
		return true;
	}

}
